<?php
/**
 * 控制器的底层抽象类
 */
namespace app\common\controller;
use think\exception\HttpResponseException;
use think\Response;
abstract class AbsBase extends \think\Controller{
    
    protected $passportObject;  // 身份证对象
    public function __construct(){
        parent::__construct();
        $plat    = $this->getLoginPlat();
        $channel = $this->getLoginChannel();
        $this->passportObject = \logic\user\Passport::getInstance($plat,$channel);
    }
    
    /**
     * 获取访问的平台应用
     */
    abstract protected function getLoginPlat();
    
    /**
     * 获取访问的入口渠道
     */
    abstract protected function getLoginChannel();

    

}